package com.luxk.db.block;

public enum Freeness {
	UNFORMATTED(0),
	FULL(1),
	FREE_0_25(2),
	FREE_25_50(3),
	FREE_50_75(4),
	FREE_75_100(5),
	EMPTY(6);
	
	private static final Freeness[] freenesses = {
		UNFORMATTED,
		FULL,
		FREE_0_25,
		FREE_25_50,
		FREE_50_75,
		FREE_75_100,
		EMPTY
	};

	private final int val;
	
	Freeness(int val) {
		this.val = val;
	}
	
	public int getValue() { return this.val; }
	
	public static Freeness getFreeness(int val) {
		return freenesses[val];
	}
}
